package com.ytc.www.controller;

import com.ytc.www.dto.ResponseBox;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * online_education
 * com.ytc.www.controller
 *
 * @author 姚自豪
 * @create 2022-03-22 17:24
 */
@RestController
public class UserController {
    @GetMapping(value = "test1")
    public ResponseBox<String> test1(HttpServletRequest request, HttpServletResponse response) {
        ResponseBox box = new ResponseBox();
        box.setResponseCode(200);
        box.setData("test1 value");
        box.setMessage("操作成功");
        return box;
    }
}
